package com.mall.shop.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * sku图片(SkuImages)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-16 15:11:28
 */
@Getter
@Setter
@TableName("pms_sku_images")
@Schema(name = "sku图片实体", description = "sku图片映射")
public class SkuImages implements Serializable {
    private static final long serialVersionUID = -38401542052088605L;

    @TableId(value = "id" , type = IdType.AUTO)
    @Schema(description = "id")
    private Long id;

    @TableField(value = "sku_id")
    @Schema(description = "sku_id")
    private Long skuId;
    
    @TableField(value = "img_url")
    @Schema(description = "图片地址")
    private String imgUrl;
    
    @TableField(value = "img_sort")
    @Schema(description = "排序")
    private Integer imgSort;
    
    @TableField(value = "default_img")
    @Schema(description = "默认图[0 - 不是默认图，1 - 是默认图]")
    private Integer defaultImg;
    
}

